package com.yndsoft.jc.supplier.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.bumptech.glide.Glide;
import com.yndsoft.jc.R;
import com.yndsoft.jc.supplier.widget.recyclerview.RecyclerAdapter;
import com.yndsoft.jc.supplier.widget.recyclerview.RecyclerHolder;

import java.util.List;

public class StarAdapter extends RecyclerAdapter<Integer> {

    public StarAdapter(Context context, List<Integer> data) {
        super(context, data, R.layout.item_star);
    }

    @Override
    public void convert(RecyclerHolder holder, Integer model) {
        ImageView star = holder.findViewById(R.id.star);
        Glide.with(mContext).load(model).into(star);
    }
}
